package com.nbsaas.boot.entity.evaluate;

import com.nbsaas.boot.code.annotation.FieldConvert;
import com.nbsaas.boot.code.annotation.FormAnnotation;
import com.nbsaas.boot.jpa.data.entity.LongEntity;
import jakarta.persistence.*;
import lombok.Data;
import org.hibernate.annotations.Comment;

@Comment("评价文件")
@FormAnnotation(title = "评价文件", model = "评价文件", searchWidth = "100", viewWidth = "120")
@Data
@Entity
@Table(name = "bs_evaluate_file")
public class EvaluateFile extends LongEntity {

    @FieldConvert
    @Comment("评价id")
    @JoinColumn(name = "evaluate_id")
    @ManyToOne(fetch = FetchType.LAZY)
    private Evaluate evaluate;

    @Column(length = 300)
    @Comment("文件地址")
    private String url;


}
